
<?php

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
require_once 'connect.php';
session_start();
if(isset ($_SESSION['permission'])&& $_SESSION['permission'] == 1) {
    //something code here
} else {
    //header('Location: login.php');
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
  <?php 
        header('Content-type: text/html; charset=UTF-8'); //Using UTF-8
  ?>
<head>
<title>Hanh trinh Viet Nam</title>
<link rel="stylesheet" type="text/css" href="css/home_style.css" />
<link rel="stylesheet" type="text/css" href="admin/css/headline.css" />
<link rel="stylesheet" type="text/css" href="admin/css/detail.css" />
<link rel="stylesheet" type="text/css" href="video_manager/video_manager.css"/>

<link rel="stylesheet" href="css/image-gallery.css" />
	<script type="text/javascript" src="js/external/mootools-core-1.3-full-compat.js"></script>
	<script type="text/javascript" src="js/external/mootools-more-1.3.1.1.js"></script>
	<script type="text/javascript" src="js/image-gallery.js"></script>	
        <script type="text/javascript" src="video_manager/fancybox/jquery.fancybox.js"></script>
        <script type="text/javascript" src="video_manager/jquery.js"></script>
        <script type="text/javascript" src="video_manager/video_manager.js"></script>
</head>

<body>
 <div id="container">
    <div id ="top">
        <img src="images/logo.jpg" />   
        <div id="menuVer">
            <ul>
			<li><a href="news.php">Tin tức</a></li>
			<li><a href="#">Điểm đến</a></li>
			<li><a href="#">Album</a></li>
			<li><a href="#">Sơ đồ</a></li>
			<li><a href="#">Liên hệ</a></li>
            </ul>
        </div>
        
        <div id="imageHeader">
        <img src="images/introduction.jpg" width="960"/>  
        </div>
    
    <div id="introImage">        
        <a href="#" ><img src="images/vanmieu.jpg" /></a>
        <a href="#" ><img src="images/thuathienhue.jpg" /></a>
        <a href="#" ><img src="images/resortSunspa.jpg" /></a>
    </div>
    </div> 
     
    <div id="content">
         <div class="left">
            <a href="#" ><img src="images/antuongVN.jpg" />ẤN TƯỢNG VIỆT NAM</a>           
            <a href="placeIntroduction.php" ><img src="images/diemden.jpg" />ĐỊA ĐIỂM</a>            
            <a href="#" ><img src="images/amthuc.jpg" />ẨM THỰC</a>             
            <a href="#" ><img src="images/khachsan.jpg" />KHÁCH SẠN</a>             
            <a href="#" ><img src="images/giaothong.jpg" />GIAO THÔNG</a>             
            <a href="#" ><img src="images/giaitri-muasam.jpg" />GIẢI TRÍ/MUA SẮM</a>            
         </div> <!--End left-->
         
         <div id="slide">
            <div id="curPath">
                <a href="index.php" ><img src="images/home.jpg" /></a>
                <img src="images/nextPath.jpg" />               
                <a href="index.php" style="vertical-align:middle; padding-bottom: 39px;font-family: arial;font-weight: bold;font-size: 15px;text-decoration: none;color: black;">KHÁM PHÁ VĂN HÓA VIỆT NAM</a>                  
                               
            </div>  
             
            <!--div id="headline">
            	<div id="randomImage"><img src="images/444.png" width="210" height="550">
                </div>
                <div id="hotarticles">
                	<h2 align="center" > Tin tuc </h2>
                	<div id="lineNews">
                    </div>
                	<div id="article">
                        <div class="imageArticle" align="center"><img src="images/tc1.jpg" width="130" height="100">
                        </div>
                        <div class="description">
                        </div>
                    </div>
                    
                  	<div id="article">
                        <div class="imageArticle"><img src="images/tc2.jpg" width="130" height="100">
                        </div>
                        <div class="description">
                        </div>
                    </div>
                    
                   	<div id="article">
                        <div class="imageArticle"><img src="images/tc3.jpg" width="130" height="100">
                        </div>
       
                        <div class="description">
                        	<h3 align="left"> Toi la Nguyen Van Nam </h3>
                        </div>
                    </div>                    
                 	<div id="article">
                        <div class="imageArticle"><img src="images/tc4.jpg" width="130" height="100">
                        </div>
                        <div class="description">
                        </div>
                    </div>
                </div>
            </div-->
            <?php
                require 'admin/get_data.php';
                $uNews = $_REQUEST['uNews'];
                $data = new PushData();
                $article = $data->loadArticle($uNews);
            ?>
            <div id="article">
                <div id="datetime">
                    <a><?php echo $article->date; ?></a>
                    <hr width="680px" />
                </div>
                <div id="title">
                    <div class="h4"><?php echo $article->title; ?></div>
                </div>
                <div id="description">
                    <?php echo $article->description; ?>
                </div>
                <div id="image"><img src="<?php echo $article->image; ?>"></img></div>
                <div id="contentArticle">
                    <?php echo $article->content; ?>
                    
                    <div class="author">
                        <div class="fontAuthor"><?php echo $article->author ?></div>
                    </div>
                </div>
            </div>
         
            <div id="articals">
			<!--?php 
			require 'connect.php';
			require 'video_manager/MyVideo.php';
			$data = new MyVideo();
			$data->createVideoTable();
                        $data->getPublicSide();
			$data->getAdminSide();
                        $data->getVideoForm();
			?-->
             <div id="category">
                 <div id="discovery">
                     
                 </div>
                 
                 <div id="specialPlace">
                     
                 </div>
                 
                 <div id="service">
                     
                 </div>
             </div>
                
            <!--form action="#" method="post">
                <div class="regrow">
                    <label class="inside" for="video_url">YouTube url:</label>
                    <input type="text" name="video_url" class="text" value="'.$video->url.'" />
                </div>
                <div class="regrow">
                    <label class="inside" for="video_title">Video Title:</label>
                    <input type="text" name="video_title" class="text" value="'.$video->title.'" />
                </div>
              <div class="regrow">
              
                    <input type="hidden" name="video_id" value="'.$video->id.'" />
                    <input type="hidden" name="todo" value="savevideo" />
                    <input type="submit" class="button" value="Send" /> 
                    <input id="cancelctcform" type="button" class="button" value="Cancel" />
              </div>
            </form-->
             
             <div id="rightImage">
			 
                 
             </div>
         </div>
     </div>
     
  </div>
</body>
</html>
